<template>
  <div class="under-construction-container">
    <img src="../assets/illustrations/正在开发中.png" alt="页面开发中" class="construction-image" />
    <h1>页面正在开发中</h1>
    <p>我们的开发团队正在加紧完善这个功能，敬请期待！</p>
    <div class="action-buttons">
      <el-button type="primary" @click="goHome">返回首页</el-button>
      <el-button @click="goBack">返回上一页</el-button>
    </div>
  </div>
</template>

<script setup>
import { useRouter } from 'vue-router';

const router = useRouter();

const goHome = () => {
  router.push('/');
};

const goBack = () => {
  router.go(-1);
};
</script>

<style scoped>
.under-construction-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 20px;
  text-align: center;
  min-height: 80vh;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4ecf7 100%);
}

.construction-image {
  max-width: 100%;
  height: auto;
  max-height: 400px;
  margin-bottom: 30px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

h1 {
  font-size: 28px;
  margin-bottom: 15px;
  color: #303133;
}

p {
  font-size: 16px;
  color: #606266;
  margin-bottom: 30px;
  max-width: 600px;
}

.action-buttons {
  display: flex;
  gap: 15px;
}

@media (max-width: 768px) {
  .construction-image {
    max-height: 300px;
  }
  
  h1 {
    font-size: 24px;
  }
  
  .action-buttons {
    flex-direction: column;
    gap: 10px;
  }
}
</style> 